package com.bestom.bluetoothlock.views;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.bestom.bluetoothlock.R;

public class SearchDialog extends Dialog {
    private View customView;
    private Context mContext;
    private SpreadView spreadView;

    public SearchDialog(Context context) {
        super(context, R.style.NoTranslucentDialog);
        this.mContext = context;
        this.customView = LayoutInflater.from(context).inflate(R.layout.dialog_search, (ViewGroup) null);
    }

    /* access modifiers changed from: protected */
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(this.customView);
        initView();
    }

    private void initView() {
        this.spreadView = (SpreadView) this.customView.findViewById(R.id.spreadView);
    }

    private boolean isDialogShow() {
        return isShowing();
    }

    public void setTitle(String str) {
        this.spreadView.setContent(str);
    }
}
